package cn.getech.data.metadata.model.res;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 系统模块
 * 
 * @author qiuxinglei
 * @email qiuxinglei@gmail.com
 * @date 2020-09-29 15:30:41
 */
@ApiModel(description = "元数据表字段信息返回列表")
@Data
public class CollectionTableFieldRes implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "字段Id")
	private Long id;

	@ApiModelProperty(value = "字段名称")
	private String fieldName;

	@ApiModelProperty(value = "字段类型")
	private String fieldType;

	@ApiModelProperty(value = "字段描述")
	private String fieldDesc;

	@ApiModelProperty(value = "数据长度")
	private Integer fieldLength;

	@ApiModelProperty(value = "默认值")
	private String fieldDefault;

	/**
	 * 字段是是否为空，1：是，0：否
	 */
	@ApiModelProperty(value = "字段是否为空")
	private Integer fieldIsNull;

	/**
	 * 是否为索引字段，1：是,0：否
	 */
	@ApiModelProperty(value = "是否为索引字段")
	private Integer indexFiled;


	/**
	 * 是否是分区字段 1 是,0 否
	 */
	@ApiModelProperty(value = "是否是分区字段")
	private Integer isPartition;

	/**
	 * 是否是分区字段 1 是,0 否
	 */
	@ApiModelProperty(value = "备注字段")
	private String remarks;

}
